package com.wj.ch2.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @program: wj_springBoot
 * @description: 测试运行
 * @author: wj
 * @create: 2021-10-22 10:52
 **/
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =new AnnotationConfigApplicationContext(EventConfig.class);
        DemoPublisher bean = context.getBean(DemoPublisher.class);
        bean.publish("2021年10月21日沈阳太原街天然气大爆炸");
        context.close();
    }
}
